extends layout

block content
    h1= title
    form(method='post' action='')
        div.form-group
            label(for='name') 分类:
            input#name.form-control(type='text',placeholder='please input a name',name='name',value=(undefined===genre?'':genre.name),required='true')
        button.btn.btn-primary(type='submit') 提交

    if errors
        ul
            for error in errors
                li!=error.msg